import { defineStore } from 'pinia'
import { ref, shallowRef, reactive } from 'vue'

export const useStore = defineStore('main', () => {
  const workspaceSvg = shallowRef(null)
  const searchPlugin = shallowRef(null)
  const code = ref('')
  const token = ref('')
  const uuid = ref('')
  const hasLayoutSider = ref(true)
  const searchVisible = ref(false)
  const resCode = ref('')
  const form = [];
  return { workspaceSvg, searchPlugin, hasLayoutSider, searchVisible, code, resCode, token, uuid, form }
})
